Re: [INTERFACES] how to obtain column info - Mailing list pgsql-interfaces

From Herouth Maoz
Subject Re: [INTERFACES] how to obtain column info
Date
Msg-id l03110702b26f28d65c54@[147.233.159.109]
Whole thread Raw
In response to Re: [INTERFACES] how to obtain column info  ("Cary B. O'Brien" <cobrien@access.digex.net>)
List pgsql-interfaces
At 3:34 +0200 on 11/11/98, Cary B. O'Brien wrote:


> I usually do a 'select * from table_x where oid < 0' or something like
> that to get an empty result set.

I always maintain that it's more elegant to write

SELECT *
FROM table_x
WHERE 'false'::bool;

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-interfaces by date:

Previous
From: Brett McCormick
Date:
Subject: Re: [INTERFACES] how to obtain column info
Next
From: Herouth Maoz
Date:
Subject: Re: [INTERFACES] Determine data type of columns